﻿#include <iostream>
using namespace std;

int res(int n)
{
    return n * ( n + 1 ) * ( n +2 ) / 6;
}

int main()
{
    int n;
    cin >> n;

    int m = res(n);
    cout << m;
    return 0;

}
